package com.fitso.model.context;

import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.context.ApplicationContext;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations={"classpath:fitso-model-context.xml"})
public class ContextFactory_IT {
	@Test
	public void test_context_beans() throws Exception {
		ApplicationContext cntx = ContextFactory.getApplicationContext();
		assertNotNull(cntx);
		assertTrue(cntx.getBeanDefinitionCount() > 0);
	}
}
